<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统配置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
  <script type="text/javascript" src="__ADMIN__/jedate/jquery-1.7.2.js"></script>
</head>
<body>
  <blockquote class="layui-elem-quote mylog-info-tit">
    <ul class="layui-tab-title">
        <a href="/admin/system/config"><li class="layui-btn"><i class="layui-icon"></i>配置项管理</li></a>
    </ul>
</blockquote>
 <form class="layui-form col-lg-5" action=" {:U('site')}" method="post">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
      <ul class="layui-tab-title">
        <volist name="configgroup" id="list_title">
          <li <if condition="$key eq 1 "> class="layui-this" </if> />
            {$list_title}
          </li>
        </volist>
      </ul>

      <div class="layui-tab-content">
       
        <foreach name='vlist' item='v' key='key'>
        <div <if condition ='$key eq 1'>  class="layui-tab-item  layui-show " <else/> class="layui-tab-item "  </if>  >

          <foreach name='v' item='config'>
          <div class="layui-form-item">
            <label class="layui-form-label">
             {$config.title}
            </label>
            <div class="layui-input-block">  
             {:get_element_html("config[".$config['name']."]",$config['typeid'], $config['tvalue'], $config['value'])}  
            </div>
          </div>
          </foreach>
        </div>
      </foreach>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>

      </div>
    </div> 
   </form>
<script src="__ADMIN__/layui/layui.js" charset="utf-8"></script>
<script>
layui.use('element', function(){
  var $ = layui.jquery
  ,element = layui.element(); //Tab的切换功能，切换事件监听等，需要依赖element模块
});
layui.use('form', function(){
  var form = layui.form();
  });
</script>

</body>
</html>